﻿CREATE PROCEDURE [dbo].[user_update]
	@user_id int,
    @username varchar(50), 
    @hashed_password varchar(200),
	@password_salt varchar(200),
    @email varchar(200), 
	@is_admin bit
as
begin
	update [dbo].[user]
	set
		username = @username,
		hashed_password = @hashed_password,
		password_salt = @password_salt,
		email = @email,
		is_admin = @is_admin
	where [user_id] = @user_id
end

